$('#container').click(function(){
	//$(e.parent()).find('img.badge-item-img, span.play').hide();//badge-animated-container-animated
});
TAT = {
	googlePlusCallBack: function(e){
		//"href": target URL,
	  	//"state": "on"|"off"
	},
	facebookLikeCallBack: function(href, widget){
		
	},
	togglePlay: function(target){
		if($(target).children('.play').length > 0){
			if($(target).find('.play').hasClass('hide') === false){
				$(target).find('.play').addClass('hide');
				$(target).find('.badge-item-img').addClass('hide');
				$(target).find('.badge-animated-container-animated').removeClass('hide');
			}
			else{
				$(target).find('.play').removeClass('hide');
				$(target).find('.badge-item-img').removeClass('hide');
				$(target).find('.badge-animated-container-animated').addClass('hide');
			}
		}
	},
	fbLogin: function(){
		 FB.login(function(response) {
		   if (response.authResponse) {
			 console.log('Welcome!  Fetching your information.... ');
			 FB.api('/me', function(response) {
			   console.log(response);
			   console.log('Good to see you, ' + response.name + '.');
			 });
		   } else {
			 console.log('User cancelled login or did not fully authorize.');
		   }
		});
	}
};
$(document).ready(function(){
	$('#upload-button').click(function(){
		$('.footer').css('z-index', '2');
		$('#overlay-container').removeClass("hide");
		$("body").addClass("no-scroll");
		$('#modal-upload').removeClass("hide");
	});
	$('.badge-overlay-close').click(function(){
		$("body").removeClass("no-scroll");
		$('#overlay-container').addClass("hide");
		$('#modal-upload').addClass("hide");
	});
});